# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo05
# Description:
# Author:       98745
# Date:         2019/3/3
#-------------------------------------------------------------------------------

class C1(Exception):
    pass
class C2(Exception):
    pass
class C3(Exception):
    pass

import random
def r():
    n=random.randint(1,3)
    print('抛出C异常:{}'.format(n))
    if n==1:
        raise C1
    if n==2:
        raise C2
    if n==3:
        raise C3
try:
    r()
except(C1,C2,C3):
    print('***执行异常处理程序***')
